﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Universum.Infrastructure.Security
{
	/// <summary>
	/// The authentication contracts
	/// </summary>
	public interface IAuthentication
	{
		/// <summary>
		///  Allows users to SignIn
		/// </summary>
		/// <param name="userName">Username</param>
		/// <param name="createPersistentCookie">If the value should be persisted to a cookie</param>
		void SignIn(string userName, bool createPersistentCookie);
		/// <summary>
		/// Signs out the current user
		/// </summary>
		void SignOut();
	}
}
